package com.atguigu.lease.web.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
//配置扫描 项目需要的组件类所在的包
@ComponentScan(basePackages = {"com.atguigu.lease" })
@EnableAsync
@EnableCaching //启用自动缓存管理
public class StgyApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(StgyApiApplication.class , args);
    }
}
